package com.qfjy.service.impl.example5;


import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class BlogServiceImpl {

    @RabbitListener(queues = "javaQueue")
    public void javaInfo( String msg){
        log.info("Java栏目信息---》{}",msg);
    }


    @RabbitListener(queues = "pythonQueue")
    public void pythonInfo( String msg){
        log.info("Python栏目信息---》{}",msg);
    }


    @RabbitListener(queues = "allQueue")
    public void allInfo( String msg){
        log.info("全部栏目信息---》{}",msg);
    }
}
